#include "guiterm.hpp"

ViewSegment::ViewSegment(Session *session, QWidget *parent)
	:QWidget(parent)
{
	this->session = session;
}

ViewSegment::~ViewSegment()
{
}

void ViewSegment::finished()
{
}

Session *ViewSegment::getSession()
{
	return session;
}

TerminalWindow *ViewSegment::getWindow()
{
	if(!session) return NULL;
	Tab *tab = session->getTab();
	if(!tab) return NULL;
	return tab->getWindow();
}

//////////////////////////////////////////////////////////////////////////////

JobViewSegment::JobViewSegment(RemoteJob *job, QWidget *parent)
	:ViewSegment(job->getSession())
{
	this->job = job;
}

JobViewSegment::~JobViewSegment()
{
}

